-- GENERATED SPELL FOR [Anvilrage Warden] --


function spell0_8890(pUnit, Event) --@Hooked Net,n/a--
pUnit:FullCastSpellOnTarget(14030,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8890', 6500, 1)
end

function spell1_8890(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8890', 8297, 1)
end

function Sorts_8890(pUnit, Event)
local choix_sorts_8890 = math.random(0, 1)
if choix_sorts_8890 == 0 then
pUnit:RegisterEvent('spell0_8890', 1, 1)
end
if choix_sorts_8890 == 1 then
pUnit:RegisterEvent('spell1_8890', 1, 1)
end
end

function mob8890_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8890', math.random(1500, 3000), 1)
end

function mob8890_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8890_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8890_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8890, 1, 'mob8890_Action')
RegisterUnitEvent(8890, 2, 'mob8890_Leave')
RegisterUnitEvent(8890, 3, 'mob8890_Kill')
RegisterUnitEvent(8890, 4, 'mob8890_Die')
